package com.springcloud.stock.feign;

import com.springcloud.commom.api.R;
import com.springcloud.commom.constant.AppConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = AppConstant.STORE_SERVICE_NAME, fallback = StoreClientFallback.class)
public interface IStoreClient {

    String API_PREFIX = "/store";

    @PostMapping(API_PREFIX + "/decreaseStore")
    R<String> decreaseStore(@RequestParam("id") String id, @RequestParam("num") Integer num);
}
